Repository navigation
Compatiblity update for mpl 3.10 - #33
Conversation
beckermr
left a comment
There was a problem hiding this comment.
I'm happy to merge this. We should develop a specific policy on MPL version support.
|
I can also leave the warning out for now. It is more for the maintainers to remind to rid of some legacy code. We could also leave it out and naturally drop support when the return of this function will break. The return signature still uses the tuple format -- which is compatible with the Indicator class but may change in the future. The mpl docs list the indicator class as an experimental feature. Curious to hear what you think. |
|
I think we should drop support for python versions and MPL versions on the same schedule as MPL. I also think we should move to calver or effver. Semver is just too hard for this package due to how much churn we experience on the MPL side of things. Using experimental features / apis is fine imho. We can read the MPL changelogs to find out when they change or are dropped. |
|
Yeah let's do that. Effver seems to work fine -- usually not too fan of the date releases. The question now is do we mark the recent changes as a 1.1 or a 1.0.1? |
|
Regarding
I fully agree too. However with regard to the feature itself do you suggest making the mpl compatibility more explicit in pyproject.toml? For example if you install mpl 3.10 you need ultraplot version x as well. Looking at the codebase now I sometimes look at how cases are handled and am confused if the situation is still recent or we just delete the older supported mpl versions. Not sure what the best way about going it. For now we could leave it in with a comment and if it becomes a problem we just remove it. |
|
Actually now that I hear myself talk I think I am not looking at the bigger picture. Whenever it needs to change in the future we just adapt and remove the redundant code. |
|
Yes we should ensure we have proper upper bounds on mpl in the pyproject.toml. |
Addresses #27
Reason
Updates
indicate_inset_zoomto support matplotlib 3.10+ while maintaining backwards compatibility.Changes
InsetIndicatorclassTechnical Details
InsetIndicatorclass which manages both rectangle and connectors in a single object